package com.zsc.wxapp.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CodeOfCustMapper {

    @Insert("insert into code_of_uuid (cust_code, cust_uuid) VALUE (#{custCode}, #{custUuid})")
    void insert(String custCode, String custUuid);

    @Select("select cust_uuid from code_of_uuid where cust_code = #{code}")
    String selectUuidByCode(String code);
}
